//
//  LHGoodsDetailView.h
//  lehuotest
//
//  Created by ice on 2017/1/16.
//  Copyright © 2017年 QF. All rights reserved.
//
// 商品详情view
#import <UIKit/UIKit.h>

typedef void(^TapClick)(void);//
@interface LHGoodsDetailView : UIView
@property(nonatomic,strong)TapClick tap;//吴程序添加的入口与封装无关

/**
 @brief 初始化方法 topView bootom一般带有scrollview

 @param frame frame
 @param topView 上部view
 @param bootomView 底部view
 @return self
 */
-(instancetype) initWithFrame:(CGRect)frame topView:(id)topView bootomView:(id) bootomView;


/**
 @brief 给外界提供 topview 和 bootom需在自身scrollview代理方法实现此方法

 @param scrollView scrollView
 @param decelerate decelerate
 */
-(void)LHGoodsDetailViewScrollViewDidEndDragging:(UIScrollView *)scrollView willDecelerate:(BOOL)decelerate;


/**
 @brief bootom需在自身scrollView代理方法实现此方法

 @param scrollView scrollView
 */
-(void) LHGoodsDetailViewScrollViewDidScroll:(UIScrollView *)scrollView;
@end
